<template>
    <el-row class="tac">
        <el-col :span="24">
            <el-menu default-active="1" class="el-menu-vertical-demo" active-text-color="#white" text-color="#333">
                <router-link :to="{name:'index'}">
    
                    <el-menu-item index="1">
                        <el-icon>
                            <HomeFilled />
                        </el-icon>
                        <span>首页</span>
    
                    </el-menu-item>
                </router-link>
    
                <router-link :to="{name:'category'}">
    
                    <el-menu-item index="2">
                        <el-icon>
                            <List />
                        </el-icon>
                        <span>分类管理</span>
    
                    </el-menu-item>
                </router-link>
                <router-link :to="{name:'good'}">
    
                    <el-menu-item index="3">
                        <el-icon>
                            <Goods />
                        </el-icon>
                        <span>商品管理</span>
                    </el-menu-item>
                </router-link>
                <router-link :to="{name:'setting'}">
    
                <el-menu-item index="4">
                    <el-icon>
                        <Setting />
                    </el-icon>
                    <span>个人设置</span>
                </el-menu-item>
            </router-link>

            </el-menu>
        </el-col>
    </el-row>
    </template>

<script lang="ts" setup>
    import { HomeFilled, List, Goods, Setting } from '@element-plus/icons-vue';
import router from '../router/router'

</script>    
<style lang="scss" scoped>
.el-menu {
    border: 0 !important;

    .is-active {
        background: linear-gradient(90deg, #b1bbc4, #01c6fa) !important
    }

    a {
        text-decoration: none;
        color: white;
    }
}
</style>
